package com.common.basis.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 启用枚举
 * @author wangguochao
 */
@AllArgsConstructor
@Getter
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum EnabledEnum {
    //启动
    ENABLE(0, "启用"),
    //未启用
    NOT_ACTIVATED(1, "未启用");
    @EnumValue
    private final int code;
    private final String desc;
}
